package cn.ismartv.indicatorscrollview;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

public class MainActivity extends AppCompatActivity {
    private IndicatorScrollView indicatorScrollView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        indicatorScrollView = (IndicatorScrollView) findViewById(R.id.indicator_view);
    }

    public void left(View view) {
        indicatorScrollView.scrollBy(-200, 0);
        indicatorScrollView.requestLayout();
    }

    public void right(View view) {
        indicatorScrollView.showNext();
    }
}
